home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xml;
-
- import java.io.IOException;
- import java.io.OutputStream;
- import java.io.Writer;
-
- public class UTFWriter extends Writer {
- // $FF: renamed from: os java.io.OutputStream
- OutputStream field_0;
-
- public UTFWriter(OutputStream var1) {
- this.field_0 = var1;
- }
-
- public void write(char[] var1, int var2, int var3) throws IOException {
- int var4 = var2 + var3;
-
- while(var2 < var4) {
- this.field_0.write(var1[var2++]);
- }
-
- }
-
- public void flush() throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- this.field_0.flush();
- }
- }
-
- public void close() throws IOException {
- if (this.field_0 == null) {
- throw new IOException();
- } else {
- this.field_0.close();
- this.field_0 = null;
- }
- }
- }
-